﻿
using Entity;
using Entity.DTO;
using System.Runtime.CompilerServices;
using System.Security.Principal;

namespace Bll
{
    /// <summary>
    /// 工程分类业务逻辑接口
    /// </summary>
    public interface IClassificationBll
    {
        /// <summary>
        /// 创建工程分类
        /// </summary>
        /// <returns></returns>
        public bool CreateClassification(string title, string remark,  out string msg);

        /// <summary>
        /// 软删除工程分类
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public bool DeleteClassification(string id);

        /// <summary>
        /// 批量软删除
        /// </summary>
        /// <returns></returns>
        public bool DeleteClassifications(List<string> ids);

        /// <summary>
        /// 根据工程分类id获取工程分类信息
        /// </summary>
        /// <returns></returns>
        public object GetClassificationById(string id);

        /// <summary>
        /// 获取工程分类集合
        /// </summary>
        public object GetClassificationList(string title, int page, int limit, out int count);

        /// <summary>
        /// 更新工程分类
        /// </summary>
        /// <returns></returns>
        public bool UpdateClassification(string id, string title, string remark, out string msg);

        /// <summary>
        /// 获取下拉选备选数据
        /// </summary>
        /// <returns></returns>
        object GetSelectOptionList();

    }
}